<?php

/*
 *	PHP Nano Framework (ver. 1.02-alpha)
 *	http://nano-framework.googlecode.com
 *
 *	By Q`Relly <qrelly@gmail.com>
 *	http://twitter.com/QRelly
 */

/*
 *	Check PHP version
 */
if(!version_compare(PHP_VERSION, '5.3.3' < 0))
{
	die('Nano are required PHP version 5.3.3 or higher!');
}

/*
 *	Define PHP file extension
 */
define('EXT', '.php');

/*
 *	Define directory separator
 */
define('DS', defined('DIRECTORY_SEPARATOR') ? DIRECTORY_SEPARATOR : '/');

/*
 *	Define root path
 */
define('BASE', rtrim(realpath(dirname(__FILE__)), '/\\'));

/*
 *	Define framework path
 */
define('FRAMEWORK', BASE.DS.'framework');

/*
 *	Define application path
 */
define('APPLICATION', BASE.DS.'application');

/*
 *	Framework prefix
 */
define('PREFIX', 'Nano');

/*
 *	Let's rock!
 */
require_once FRAMEWORK.DS.'Nano'.EXT;